package com.zhude.k8sdemo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhude.k8sdemo.mapper.UserMapper;
import com.zhude.k8sdemo.pojo.User;
import com.zhude.k8sdemo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @projectName: k8sdemo
 * @packageName: com.zhude.k8sdemo.service.impl
 * @author: zhude
 * @description:
 * @date: 2022/11/11 14:49
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> getAll() {
        return userMapper.selectList(null);
    }
}
